﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/PageTemplate.Master" AutoEventWireup="true" CodeBehind="PromotersRegister.aspx.cs" Inherits="FrameWork.web.Module.ITMS.Service.PromotersRegister.PromotersRegister" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">

<script src="../../../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script>
    function document.body.onkeypress()
    {
      if(event.keyCode==13 && event.srcElement.id=='')
      {
        event.keyCode=0;
        return;
      }
    }
    function Edit(ID)
    {
        if(ID.lastIndexOf('_')==-1)
        {
            return;
        }
        var frontID=ID.substring(0,ID.lastIndexOf('_')+1)+'lab';
        UID=document.getElementById(frontID+'UID').innerText;
      
       document.getElementById('<%=txtEditUID.ClientID %>').innerText=UID;
       document.getElementById('<%=btnEdit.ClientID %>').click();
//        USERNO=document.getElementById(frontID+'USERNO').innerText;
        
        
//        USERNAME=document.getElementById(frontID+'USERNAME').innerText;
//        RELIEFNO=document.getElementById(frontID+'RELIEFNO').innerText;
//        RELIEFDAT=document.getElementById(frontID+'RELIEFDAT').innerText;
//        FILLINDAT=document.getElementById(frontID+'FILLINDAT').innerText;
//        CONTENT=document.getElementById(frontID+'CONTENT').innerText;
//        // alert(RELIEFNO);
//        fileValue(UID,USERNO,USERNAME,RELIEFNO,RELIEFDAT,FILLINDAT,CONTENT)
//        showTabEdit();
//        window.scrollTo(0,1000);
    }
    //显示TABLE
    function showTabEdit()
    {
        document.getElementById('tabEdit').style.display='';
    }
    //隐藏TABLE
    function hideTabEdit()
    {
        document.getElementById('tabEdit').style.display='none';
    }
    //填充值
    function fileValue(UID,USERNO,USERNAME,RELIEFNO,RELIEFDAT,FILLINDAT,CONTENT)
    {
        
    }
  
    </script>

    <FrameWorkWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
        HeadOPTxt="开发商登记" HeadTitleTxt="开发商登记">
    </FrameWorkWebControls:HeadMenuWebControls>
    <FrameWorkWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <FrameWorkWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="开发商登记">
            <asp:GridView ID="GVPromotersRegister" runat="server" AutoGenerateColumns="False" Width="100%">
                <Columns>
                    <asp:TemplateField HeaderText="员工编号">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("USERNO") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="labItemUSERNO" runat="server" NavigateUrl="#"  Text='<%# Bind("USERNO") %>' onclick="Edit(id)"></asp:HyperLink>
                           
                            <asp:Label ID="labUID" runat="server" Text='<%# Bind("ID") %>' Style="    display: none; "></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="100px" />
                      
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="姓名">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("USERNAME") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                           
                            <asp:HyperLink ID="labUSERNAME" runat="server" NavigateUrl="#"  Text='<%# Bind("USERNAME") %>' onclick="Edit(id)"></asp:HyperLink>
                        </ItemTemplate>
                        <ItemStyle Width="80px" />
                      
                    </asp:TemplateField>
                   
                    <asp:TemplateField HeaderText="开始时间">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("BeginTime") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="labBeginTime" runat="server" Text='<%# Bind("BeginTime") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="120px" />
                      
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="公司">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Company") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="labCompany" runat="server" Text='<%# Bind("Company")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="150px" />
                      
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="来访人员">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Visitor") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="labVisitor" runat="server" Text='<%# Bind("Visitor")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="100px" />
                      
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="所做操作">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Operate") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="labOperate" runat="server" Text='<%# Bind("Operate")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="150px" />
                      
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="登陆手段">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("LoginType") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="labLoginType" runat="server" Text='<%# Bind("LoginType")%>'></asp:Label>
                        </ItemTemplate>
                         <ItemStyle Width="100px" />
                       
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="影响范围">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Influence") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="labInfluence" runat="server" Text='<%# Bind("Influence")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="200px" />
                       
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="结束时间">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("FinishTime") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="labFinishTime" runat="server" Text='<%# Bind("FinishTime")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="120px" />
                        
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="接待人员">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Reception") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="labReception" runat="server" Text='<%# Bind("Reception")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="80px" />
                       
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <FrameWorkWebControls:AspNetPager ID="PUPromotersRegister" runat="server" OnPageChanged="PUReliefInfo_PageChanged">
            </FrameWorkWebControls:AspNetPager>
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="left" id='tabEdit'
                style="display: none">
                <tr>
                    <td style="height: 25px"></td>
                </tr>
                <tr class="table_body table_body_NoWidth">
                    <td style="height: 25px">
                        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="X-Small" Text="详细信息"></asp:Label></td>
                </tr>
                <tr>
                    <td class="table_body table_body_NoWidth">
                        员工编号</td>
                    <td class="table_none table_none_NoWidth">
                        <asp:Label ID="labEditUSERNO" runat="server"></asp:Label>
                    </td>
                    <td class="table_body table_body_NoWidth">
                        姓名</td>
                    <td class="table_none table_none_NoWidth">
                        <asp:Label ID="labEditUSERNAME" runat="server"></asp:Label></td>
                </tr>
               <tr>
                    <td class="table_body table_body_NoWidth" style="width: 81px;">
                        开始时间</td>
                    <td class="table_none table_none_NoWidth" style="width: 242px;">
                        <asp:TextBox ID="txtEditBeginTime" runat="server" Columns="10" CssClass="text_input" onKeyDown="event.returnValue=false;"
                           onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',skin:'whyGreen'})" 
                            Width="151px"></asp:TextBox></td>
                    <td class="table_body table_body_NoWidth" style="width: 84px;">
                        公司</td>
                    <td class="table_none table_none_NoWidth" style="width: 337px;">
                        <asp:TextBox ID="txtEditCompany"  runat="server" CssClass="text_input" Width="421px" MaxLength="50"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="table_body table_body_NoWidth" style="width: 81px">
                        来访人员</td>
                    <td class="table_none table_none_NoWidth" style="width: 242px">
                        <asp:TextBox ID="txtEditVisitor" runat="server" CssClass="text_input" 
                            Width="111px" MaxLength="50"></asp:TextBox></td>
                    <td class="table_body table_body_NoWidth" style="width: 84px">
                        所做操作</td>
                    <td class="table_none table_none_NoWidth" style="width: 337px">
                        <asp:TextBox ID="txtEditOperate" runat="server" CssClass="text_input" 
                            Width="421px" MaxLength="50"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="table_body table_body_NoWidth" style="width: 81px" valign="top">
                        登陆手段</td>
                    <td class="table_none table_none_NoWidth" style="width: 242px" valign="top">
                        <asp:TextBox ID="txtEditLoginType" runat="server" CssClass="text_input" 
                            Width="226px" MaxLength="50"></asp:TextBox></td>
                    <td class="table_body table_body_NoWidth" style="width: 84px" valign="top">
                        影响范围</td>
                    <td class="table_none table_none_NoWidth" style="width: 337px">
                        <asp:TextBox ID="txtEditInfluence" runat="server" CssClass="text_input" 
                            Width="421px" Height="70px" MaxLength="500" TextMode="MultiLine"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="table_body table_body_NoWidth" style="width: 81px">
                        结束时间</td>
                    <td class="table_none table_none_NoWidth" style="width: 242px">
                        <asp:TextBox ID="txtEditFinishTime" runat="server" Columns="10" CssClass="text_input" onKeyDown="event.returnValue=false;"
                           onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',skin:'whyGreen'})"  
                            Width="151px"></asp:TextBox></td>
                    <td class="table_body table_body_NoWidth" style="width: 84px">
                        接待人员</td>
                    <td class="table_none table_none_NoWidth" style="width: 337px">
                        <asp:TextBox ID="txtEditReception" runat="server" CssClass="text_input" 
                            Width="149px" MaxLength="50"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="btnEditSave" runat="server" Text="修改" CssClass="button_bak" OnClick="btnEditSave_Click"
                            />
                        <input id="btnCancel"  type="button" value="取消" class="button_bak"
                            onclick="hideTabEdit()" />
                        &nbsp;
                    </td>
                </tr>
                <tr>
                <td colspan="4" align="right"> <asp:Button ID="btnEdit" Style="display:none;" runat="server"
                Text="btnEdit" OnClick="btnEdit_Click" />
            <asp:TextBox ID="txtEditUID" runat="server" Style=" display: none"
                Width="65px"></asp:TextBox>
                </td>
                </tr>
            </table>
           </FrameWorkWebControls:TabOptionItem>
        <FrameWorkWebControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="填写开发商登记">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="left">
                <tr>
                    <td class="table_body table_body_NoWidth" style="width: 81px">
                        员工编号</td>
                    <td class="table_none table_none_NoWidth" style="width: 242px">
                        <asp:Label ID="labUSERNO" runat="server"></asp:Label></td>
                    <td class="table_body table_body_NoWidth" style="width: 84px">
                        姓名</td>
                    <td class="table_none table_none_NoWidth" style="width: 337px">
                        <asp:Label ID="labUSERNAME" runat="server"></asp:Label></td>
                </tr>
                <tr>
                    <td class="table_body table_body_NoWidth" style="width: 81px;">
                        开始时间</td>
                    <td class="table_none table_none_NoWidth" style="width: 242px;">
                        <asp:TextBox ID="txtBeginTime" runat="server" Columns="10" CssClass="text_input" onKeyDown="event.returnValue=false;"
                            onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',skin:'whyGreen'})" 
                            Width="151px"></asp:TextBox></td>
                    <td class="table_body table_body_NoWidth" style="width: 84px;">
                        公司</td>
                    <td class="table_none table_none_NoWidth" style="width: 337px;">
                        <asp:TextBox ID="txtCompany"  runat="server" CssClass="text_input" Width="421px" MaxLength="50"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="table_body table_body_NoWidth" style="width: 81px">
                        来访人员</td>
                    <td class="table_none table_none_NoWidth" style="width: 242px">
                        <asp:TextBox ID="txtVisitor" runat="server" CssClass="text_input" 
                            Width="111px"></asp:TextBox></td>
                    <td class="table_body table_body_NoWidth" style="width: 84px">
                        所做操作</td>
                    <td class="table_none table_none_NoWidth" style="width: 337px">
                        <asp:TextBox ID="txtOperate" runat="server" CssClass="text_input" 
                            Width="421px" MaxLength="50"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="table_body table_body_NoWidth" style="width: 81px" valign="top">
                        登陆手段</td>
                    <td class="table_none table_none_NoWidth" style="width: 242px" valign="top">
                        <asp:TextBox ID="txtLoginType" runat="server" CssClass="text_input" 
                            Width="226px" MaxLength="50"></asp:TextBox></td>
                    <td class="table_body table_body_NoWidth" style="width: 84px" valign="top">
                        影响范围</td>
                    <td class="table_none table_none_NoWidth" style="width: 337px">
                        <asp:TextBox ID="txtInfluence" runat="server" CssClass="text_input" 
                            Width="421px" Height="70px" MaxLength="500" TextMode="MultiLine"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="table_body table_body_NoWidth" style="width: 81px">
                        结束时间</td>
                    <td class="table_none table_none_NoWidth" style="width: 242px">
                        <asp:TextBox ID="txtFinishTime" runat="server" Columns="10" CssClass="text_input" onKeyDown="event.returnValue=false;"
                           onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',skin:'whyGreen'})"  
                            Width="151px"></asp:TextBox></td>
                    <td class="table_body table_body_NoWidth" style="width: 84px">
                        接待人员</td>
                    <td class="table_none table_none_NoWidth" style="width: 337px">
                        <asp:TextBox ID="txtReception" runat="server" CssClass="text_input" 
                            Width="149px" MaxLength="50"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="btnSave" runat="server" Text="保存" CssClass="button_bak" OnClick="btnSave_Click" />
                    </td>
                </tr>
            </table>
        </FrameWorkWebControls:TabOptionItem>
    </FrameWorkWebControls:TabOptionWebControls>
</asp:Content>
